package com.xjrsoft.module.workflow.dto;

import com.xjrsoft.module.workflow.model.MessageAssignmentConfig;
import com.xjrsoft.module.workflow.model.ReceiverConfiguration;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author hnyyzy
 * @version 1.0
 * @date 2024/1/29 9:35
 */
@Data
public class MessageSendDto {
    /**
     * 消息模板id
     */
    @ApiModelProperty("消息模板id")
    @NotNull(message = "消息模板id为空")
    private Long id;

    /**
     * 消息模板类型
     */
    @ApiModelProperty("消息模板类型")
    @Min(value = 0, message = "消息模板类型不能小于0")
    @Max(value = 6, message = "消息模板类型不能大6")
    private Integer type;

    /**
     * 接收人员配置
     */
    @ApiModelProperty("接收人员配置")
    @NotNull(message = "接收人员配置为空")
    private List<ReceiverConfiguration> receiverConfiguration;

    /**
     * 参数配置
     */
    @ApiModelProperty("参数配置")
    private List<MessageAssignmentConfig> config;

    @ApiModelProperty("表单id")
    private Long formId;

}
